<template>
  <div class="TodoList">
    <TodoItem
      v-for="item in ToDos"
      :key="item.id"
      :item="item"
      :changeChecked="changeChecked"
      :delToDo="delToDo"
    />
  </div>
</template>

<script>
import TodoItem from "./TodoItem";
export default {
  name: "TodoList",
  components: {
    TodoItem,
  },
  props: ["ToDos", "changeChecked", "delToDo"],
};
</script>

<style lang="less" scoped>
.TodoList {
  width: 500px;
  margin: 15px;
}
</style>